<template>
	<view class="content">
		<image src="../../static/logo.png" style="width: 600rpx;height: 600rpx;"></image>
<!-- 		<view class="size">
			欢迎来到流浪方舟
		</view> -->
	</view>
</template>

<script setup>
	import {
		computed,
		onMounted,
		ref,
		reactive
	} from 'vue'
	let token =  uni.getStorageSync('setToken') 
	if(token){
		uni.switchTab({
			url: '/pages/index/index',
			success(){
				let page = getCurrentPages().pop();  //跳转页面成功之后
					if (!page) return;  
					page.onShow(); //如果页面存在，则重新刷新页面
			}
		});
	}else{
		uni.reLaunch({
			url: '/pages/login/login'
		});
	}
</script>

<style lang="scss" scoped>
.size{
	color: #fff;
}
</style>